package org.example.erat.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 班级数据传输对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ClassDTO {

    private Long id;

    @NotBlank(message = "班级名称不能为空")
    private String name;

    @NotNull(message = "课程ID不能为空")
    private Long courseId;

    private String courseName;

    private Integer studentCount;
}
